package com.tour.modules.web.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tour.modules.web.dao.TCategoryDao;
import com.tour.modules.web.entity.TCategoryEntity;
import com.tour.modules.web.service.TCategoryService;

@Service("tCategoryService")
public class TCategoryServiceImpl implements TCategoryService {
	@Autowired
	private TCategoryDao tCategoryDao;

	@Override
	public TCategoryEntity queryObject(Long id) {
		return tCategoryDao.queryObject(id);
	}

	@Override
	public List<TCategoryEntity> queryList(Map<String, Object> map) {
		return tCategoryDao.queryList(map);
	}

	@Override
	public int queryTotal(Map<String, Object> map) {
		return tCategoryDao.queryTotal(map);
	}

	@Override
	public void save(TCategoryEntity tCategory) {
		tCategoryDao.save(tCategory);
	}

	@Override
	public void update(TCategoryEntity tCategory) {
		tCategoryDao.update(tCategory);
	}

	@Override
	public void delete(Long id) {
		tCategoryDao.delete(id);
	}

	@Override
	public void deleteBatch(Long[] ids) {
		tCategoryDao.deleteBatch(ids);
	}

	@Override
	public List<TCategoryEntity> queryListInfoAll() {

		return tCategoryDao.queryListInfoAll();
	}

}
